package com.custom.lessonstudy.net;

import java.util.List;

/**
 * @author by cyb on 2019/1/2.
 * retrofit返回
 */

public class BaseHttpListResponse<T extends BaseResponseBean> implements BaseResponse {

    /**
     * 返回结果的状态值(1:成功,0:失败)
     */
    public int state;
    /**
     * 返回结果code
     */
    public int code;
    /**
     * 返回数据
     */
    public List<T> data;
    /**
     * 信息描述
     */
    public String msg;
    /**
     * 返回的token
     */
    public String token;

    @Override
    public int getResponseState() {
        return state;
    }

    @Override
    public String getResponseMsg() {
        return msg;
    }

    @Override
    public int getResponseCode() {
        return code;
    }
}
